home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temafire / Red Cats (green flavor).jar / global / checkbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-04-18  |  2.9 KB  |  103 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *
  22.  */
  23. /* ===== checkbox.css ===================================================
  24.   == Styles used by the XUL checkbox element.
  25.   ======================================================================= */
  26. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  27. /* ::::: checkbox ::::: */
  28. checkbox {;
  29.     -moz-box-align: center;
  30.     margin: 2px 1px;
  31.     padding: 1px 2px 1px 1px;
  32. }
  33.  
  34. .checkbox-label-box {
  35.     border: 1px solid transparent;
  36.     background-color:transparent;
  37.     margin-left: 2px;
  38.     padding: 0px 1px;
  39. }
  40.  
  41. .checkbox-icon {
  42.     margin-right: 2px;
  43. }
  44.  
  45. .checkbox-label {
  46.     margin: 0px !important;
  47. }
  48.  
  49. /* ::::: checkBox ::::: */
  50. .checkbox-check {
  51.     width: 13px;
  52.     height: 13px;
  53.     list-style-image: url("chrome://global/skin/checkbox/cbox.png");
  54. }
  55.  
  56.  
  57. /* ..... focused state ..... */
  58. checkbox:focus > .checkbox-label-box {
  59.     border: 1px dotted #6E85A8;
  60. }
  61.  
  62. checkbox:focus >  .checkbox-check {
  63.     list-style-image: url("chrome://global/skin/checkbox/cbox-focus.png");
  64. }
  65.  
  66. checkbox[checked="true"]:focus >  .checkbox-check {
  67.     list-style-image: url("chrome://global/skin/checkbox/cbox-checked-focus.png");
  68. }
  69.  
  70. /*active*/
  71. checkbox:focus:active > .checkbox-check {
  72.     list-style-image: url("chrome://global/skin/checkbox/cbox-active.png");
  73. }
  74.  
  75. checkbox[checked="true"]:active > .checkbox-check {
  76.     list-style-image: url("chrome://global/skin/checkbox/cbox-checked-active.png");
  77. }
  78.  
  79. /* ..... checked state ..... */
  80. checkbox[checked="true"] > .checkbox-check {
  81.     list-style-image: url("chrome://global/skin/checkbox/cbox-checked.png");
  82. }
  83.  
  84. checkbox[checked="true"][disabled="true"] > .checkbox-check {
  85.     list-style-image: url("chrome://global/skin/checkbox/cbox-active.png");
  86.     -moz-opacity: 0.8;
  87. }
  88.  
  89. /* ..... disabled state ..... */
  90. checkbox[disabled="true"] {
  91.     color: #93A295;
  92.     -moz-opacity: 0.8;
  93. }
  94.  
  95. checkbox[disabled="true"] > .checkbox-check {
  96.     list-style-image: url("chrome://global/skin/checkbox/cbox.png");
  97. }
  98.  
  99. checkbox[checked="true"][disabled="true"] > .checkbox-check {
  100.     list-style-image: url("chrome://global/skin/checkbox/cbox-checked.png");
  101. }
  102.  
  103.